﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{
     public static partial class FactoryClass
    {
         private static RoadTeam.SysInterface.ICsAcceptItem _iCsAcceptItem = null;
        /// <summary>
         /// 获取ICsAcceptItem实现业务的实例
        /// </summary>
        /// <returns>IConfig</returns>
         public static ICsAcceptItem CreateCsAcceptItem()
        {
            if (_iCsAcceptItem == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.CsAcceptItem";
                _iCsAcceptItem = (ICsAcceptItem)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsAcceptItem;
        }
    }


     public interface ICsAcceptItem
     {
         /// <summary>
         /// 获取空表数据集合
         /// </summary>
         /// <returns></returns>
         DataTable GetEmptyDataFromSystem();


         bool InsertDataTableToSysTem(DataTable dt);


     }
}
